{php $duoquans = \Phpcmf\Service::M()->db->table('1_quan_shezhi')->where('dirname', 'quan')->get()->getRowArray();}
{php $duoquan = dr_string2array($duoquans['setting']);}
{php $quanliulan = $duoquan['pages']['quan_liulan'];}
{php $quantupianlist = $duoquan['pages']['quan_tupian_list'];}
{php $qiniusuolietu = $duoquan['pages']['quan_qiniutuhouzhui'];}
{php $alisuolietu = $duoquan['pages']['quan_alituhouzhui'];}
{php $quangetu = $duoquan['pages']['quan_getu'];}
{php $tiezijianjie = $duoquan['pages']['tiezi_jianjie'];}
{php $tengxunsuolietu = $duoquan['pages']['quan_tengxuntuhouzhui'];}
{if $quantupianlist == 1}
    {php $houzhuitu = '';}
{elseif $quantupianlist == 2}
    {php $houzhuitu = $qiniusuolietu;}
{elseif $quantupianlist == 3}
    {php $houzhuitu = $alisuolietu;}
{elseif $quantupianlist == 4}
    {php $houzhuitu = $tengxunsuolietu;}
{/if}
{php $shouyedata = \Phpcmf\Service::M()->table('1_quan')->where('syzs', 0)->getAll();}
{php $simidata = \Phpcmf\Service::M()->table('1_quan')->where('simi', 1)->getAll();}
<?php
    $unshouyedata = [];
    foreach ($shouyedata as $v => $data) {
    	$unshouyedata[] = $data['id'];
    }
	$unsimidata = [];
	foreach ($simidata as $v => $data) {
		$unsimidata[] = $data['id'];
	}
?>
{php $unshouyyincangdArray = array_merge($unshouyedata, $unsimidata);}
{php $unshouyyincang = implode(',',$unshouyyincangdArray);}
<!--列表重复-->
{if $get.tid >1 }
<!--获取接口地址的参数-->
{php $idtid=$get.tid;}
{else}
{php $idtid=$_GET['qid'];}
{/if}
{if $myuid}
{php $listwenzis = \Phpcmf\Service::M()->db->table('module_form')->where('module', 'quan')->where('table', 'son')->get()->getRowArray();}
{php $listwenzi = dr_string2array($listwenzis['setting']);}
{mform module=quan form=son order=inputtime NOTIN_cid=$unshouyyincang  uid=$myuid tid=$idtid page=1 pagesize=100 return=t}
<!--图片-->
{php $imgs = dr_get_content_img($t.neirong);}
<div class="d-col-md-8-10">
	<div class="d-yuanjiao-10 d-kuan d-waigao-20 d-beijing-baise d-bianhua-10 ">
		<!--头部-->
		<div class="d-kuan d-buhuanhang  d-xia-10">
			<!--头部-->
			<div class="d-yuanjiao-10 d-quxian-0">
				<a href="{d_huiyuan_url($t.uid)}">
					<img src="{dr_avatar($t.uid)}" width="40" height="40" class="d-yuanjiao-50"/>
				</a>
			</div>
			<div class="d-zuo-10 d-kuan">
				<div class="d-jiacu d-buhuanhang">
					<div class="d-jiacu d-quxian-0">
						<a href="{d_huiyuan_url($t.uid)}">
						{php $userweixin=\Phpcmf\Service::M()->db->table('member_oauth')->where('uid', $myuid)->get()->getRowArray();}
						{php $user=dr_member_info($t.uid);}
							{if $user.name}
								{$user.name}
							{elseif $userweixin.nickname}
								{$userweixin.nickname}
							{else}
								{$user.username}
							{/if}
						</a>
					</div>
					<div class="d-zuo-10">
						<!--img src="{HOME_THEME_PATH}quan/img/dengji1.png" width="60" height="15" class="d-yuanjiao-50"/-->
					</div>
				</div>
				<div class="d-zitiyanse-hui d-wenzi-12">
					{php $user=dr_member_info($t.uid);}
					{loop $user.group $tt}
						{$tt.group_name}
					{/loop}
					.
					<span class="d-wenzi-12 d-zitiyanse-hui" style="margin: 0px 0 0px 15px;">
						{php $ip=\Phpcmf\Service::L('ip')->address($t.inputip);}
						{if $ip == "未知地区"}
						<i class="fa fa-map-marker"></i> 中国
						{else}
						<i class="fa fa-map-marker"></i> {$ip;}
						{/if}
					</span>
				</div>
			</div>
			<div class="d-kuan-140">
				<div class="d-zitiyanse-hui d-zuo-10 d-div-you d-buhuanhang">
				    <a  id="guanzhu_list_{$t.uid}" data-id="{$t.uid}" class="guanzhu_list">
					    {dr_guanzhu_list($t.uid, $member.id)} 
					</a>
				</div>
			</div>
		</div>
		<!--列表内容-->
		<div class="d-kuan d-xia-10 d-quxian-0">
			<!--标题{dr_member_url('login/oauth', ['name' => $name, 'type' => 1, 'id' => $id])}-->
			{if $t.spspkg != 1}
			<a href="{dr_url('quan/son/index',['id' => $t.id])}"> 
				<div class="d-jiacu d-wenzi-16 {if $quankongge==1}d-zuonei-50{/if}">{$t.title}</div>
				<!--简介-->
				<div class="{if $quankongge==1}d-qiankong-50{/if} d-chaochu-6 d-wenzi-14 d-list d-zitiyanse-hui d-huanhang {if !$t.title} d-zitiyanse-hei d-wenzi-16{/if}">
				    {if $listwenzi['is_listwenzi'] == 1}
							{if $tiezijianjie==0} 
							{dr_strcut(dr_clearhtml($t.neirong), 70)}
							{/if}
					{elseif $t.spspkg == 1}
					{else}
						{if $tiezijianjie==0} 
							{dr_get_content_quimgs($t.neirong)}
						{/if}
					{/if}
				</div>
			</a>
			{/if}
			<div class="d-shang-10 d-kuan"></div>
			
			{if $t.caijizhanshi != '1'}
				{if $listwenzi['is_listtupian'] == 1}
				<div id="d-tupian-{$t.id}">
					{if !$t.thumb}
						{if $quantupianlist == 0}
							{template "index-tupian-list.html"}
						{elseif $quantupianlist == 2 || $quantupianlist == 3 || $quantupianlist == 4}
							{template "index-tupian-url-yun-list.html"}
						
						{/if}
					{else}
				    	{if $quantupianlist == 0}
				    		{template "index-tupian-list.html"}
				    	{elseif $quantupianlist == 2 || $quantupianlist == 3 || $quantupianlist == 4}
				    		{template "index-tupian-url-yun-list.html"}
				    	
				    	{/if}
					{/if}
				</div>
				<script>
				var viewer = new Viewer(document.getElementById('d-tupian-{$t.id}'), {
				  	//url: 'data-kujue',
					toolbar: false,//关闭工具栏
					title: false,//关闭标题栏
					backdrop: true, //点击遮罩层不关闭
					rotatable: false, //图片是否可旋转
					scalable: false, //图片是否可翻转
					tooltip: false, //显示缩放百分比
				  });
				</script>
			    {else}
			
				<a href="{dr_url('quan/son/index',['id' => $t.id])}"> 
				    {if !$t.thumb}
				    	{if $quantupianlist == 0}
				    		{if $quangetu == '1'}
				    			{template "index-tupian-list-san.html"}
				    		{else}
				    			{template "index-tupian-list.html"}
				    		{/if}
				    	{elseif $quantupianlist == 2 || $quantupianlist == 3 || $quantupianlist == 4}
				    		{if $quangetu == '1'}
				    			{template "index-tupian-url-yun-list-san.html"}
				    		{else}
				    			{template "index-tupian-url-yun-list.html"}
				    		{/if}
				    	
				    	{/if}
				    {else}
				    	{if $quantupianlist == 0}
				    		{if $quangetu == '1'}
				    			{template "index-tupian-list-san.html"}
				    		{else}
				    			{template "index-tupian-list.html"}
				    		{/if}
				    	{elseif $quantupianlist == 2 || $quantupianlist == 3 || $quantupianlist == 4}
				    		{if $quangetu == '1'}
				    			{template "index-tupian-url-yun-list-san.html"}
				    		{else}
				    			{template "index-tupian-url-yun-list.html"}
				    		{/if}
				    	{/if}
				    {/if}
				</a>
				{/if}
			{else}
				    
			{/if}
			<!--商品-->
			{if $t.spspkg == 1}
				{template "index-list-shangpin.html"}
			{/if}
		</div>
		<!--列表评论-->
		<div class="d-kuan">
			<div class="row ">
				<div class="d-hanggao-24 col-xs-6 d-zitiyanse-hui">
					{dr_fdate($t._inputtime)}
				</div>
				<div class="col-xs-6 ">
					<div class="row ">
						<div class="col-xs-6 ">
							<div class=" ">
								<div class="d-zitiyanse-hui d-div-you d-buhuanhang">
									<img src="{HOME_THEME_PATH}quan/img/pinglun.svg" width="24" height="24" class="d-yuanjiao-50 d-div-zuo"/>
									<div class="d-zitiyanse-hui d-hanggao-24 d-zuo-10 d-div-yuo">{intval($t.comments)}</div>
								</div>
							</div>
						</div>
						<div class="col-xs-6 ">
							<div class=" ">
								<div class="d-zitiyanse-hui d-zuo-10 d-div-you d-buhuanhang">
								    <a  id="tag_zan_list_{$t.id}" data-id="{$t.id}" class="tag_zan_list">
									    {dr_quan_tag_zan_list($t.id, $t.zan)} 
									</a>
									<div class="d-zitiyanse-hui d-hanggao-24 d-zuo-10 d-div-yuo" {if $member} id="module_zan_list_{$t.id}"{/if}>{intval($t.zan)}</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
{/mform}
{/if}